<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <script>
            function Person(name, age) {
                this.name = name;
                this.age = age;
            }
            function Child(friends) {
                this.friends = friends;
            }

            Child.prototype = Object.create(Person.prototype);
            console.dir(Child.prototype.constructor);
        </script>
    </body>
</html>
